package com.kevin.service.controller;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@Api(tags = {"测试控制类名称"})
@RestController
@RequestMapping("/common")
public class CommonController {

    @ApiOperation(value = "接口名称", notes = "接口描述")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "str",value = "参数说明")
    })
    @GetMapping("/info")
    public String info(@RequestParam String str){
        return str;
    }
}
